/**
 *	Yggdrasil World Framework Toolkit
 *	(A component of the NeuroCoSA toolkit)
 *	Copyright (C) 2001-5 Stuart Meikle.
 *
 *	This is free software; you can redistribute it and/or
 *	modify it under the terms of the GNU Lesser General Public
 *	License as published by the Free Software Foundation; either
 *	version 2.1 of the License, or (at your option) any later version.
 *
 *	This library is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *	Lesser General Public License for more details.
 *
 * @author	Stuart Meikle
 * @version	2006-halloween
 * @license	LGPL
 */

package org.stumeikle.Yggdrasil;

import java.net.*;
import java.io.*;
import java.util.*;

/**
 version object
 unnecessary really, having to bend to java syntax/methods
 pants.
*/
public class	Version implements Serializable
{
    static final long    serialVersionUID = BodySerialID.Version;

    private	int	v=0;

    Version( int a )
    { v = a; }

    public boolean	greaterThan( Version x )
    	   { if (v > x.v ) return true;
	     else	   return false;
	   }
    public boolean	lessThan( Version x )
	   { if (v < x.v ) return true;
	     else	   return false;
	   }
    public boolean	equalTo( Version x )
	   { if (v == x.v ) return true;
	     else	   return false;
	   }
    public int		getValue()
    	   { return v; }
    public void		setValue( int x )
           { v=x; }
    public void		setValue( Version x )
    	   { v = x.v; }
}

